package com.xch.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class HandlemedicineExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HandlemedicineExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRegisterIdIsNull() {
            addCriterion("registerId is null");
            return (Criteria) this;
        }

        public Criteria andRegisterIdIsNotNull() {
            addCriterion("registerId is not null");
            return (Criteria) this;
        }

        public Criteria andRegisterIdEqualTo(String value) {
            addCriterion("registerId =", value, "registerId");
            return (Criteria) this;
        }

        public Criteria andRegisterIdNotEqualTo(String value) {
            addCriterion("registerId <>", value, "registerId");
            return (Criteria) this;
        }

        public Criteria andRegisterIdGreaterThan(String value) {
            addCriterion("registerId >", value, "registerId");
            return (Criteria) this;
        }

        public Criteria andRegisterIdGreaterThanOrEqualTo(String value) {
            addCriterion("registerId >=", value, "registerId");
            return (Criteria) this;
        }

        public Criteria andRegisterIdLessThan(String value) {
            addCriterion("registerId <", value, "registerId");
            return (Criteria) this;
        }

        public Criteria andRegisterIdLessThanOrEqualTo(String value) {
            addCriterion("registerId <=", value, "registerId");
            return (Criteria) this;
        }

        public Criteria andRegisterIdLike(String value) {
            addCriterion("registerId like", value, "registerId");
            return (Criteria) this;
        }

        public Criteria andRegisterIdNotLike(String value) {
            addCriterion("registerId not like", value, "registerId");
            return (Criteria) this;
        }

        public Criteria andRegisterIdIn(List<String> values) {
            addCriterion("registerId in", values, "registerId");
            return (Criteria) this;
        }

        public Criteria andRegisterIdNotIn(List<String> values) {
            addCriterion("registerId not in", values, "registerId");
            return (Criteria) this;
        }

        public Criteria andRegisterIdBetween(String value1, String value2) {
            addCriterion("registerId between", value1, value2, "registerId");
            return (Criteria) this;
        }

        public Criteria andRegisterIdNotBetween(String value1, String value2) {
            addCriterion("registerId not between", value1, value2, "registerId");
            return (Criteria) this;
        }

        public Criteria andMedicineIdIsNull() {
            addCriterion("medicineId is null");
            return (Criteria) this;
        }

        public Criteria andMedicineIdIsNotNull() {
            addCriterion("medicineId is not null");
            return (Criteria) this;
        }

        public Criteria andMedicineIdEqualTo(Integer value) {
            addCriterion("medicineId =", value, "medicineId");
            return (Criteria) this;
        }

        public Criteria andMedicineIdNotEqualTo(Integer value) {
            addCriterion("medicineId <>", value, "medicineId");
            return (Criteria) this;
        }

        public Criteria andMedicineIdGreaterThan(Integer value) {
            addCriterion("medicineId >", value, "medicineId");
            return (Criteria) this;
        }

        public Criteria andMedicineIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("medicineId >=", value, "medicineId");
            return (Criteria) this;
        }

        public Criteria andMedicineIdLessThan(Integer value) {
            addCriterion("medicineId <", value, "medicineId");
            return (Criteria) this;
        }

        public Criteria andMedicineIdLessThanOrEqualTo(Integer value) {
            addCriterion("medicineId <=", value, "medicineId");
            return (Criteria) this;
        }

        public Criteria andMedicineIdIn(List<Integer> values) {
            addCriterion("medicineId in", values, "medicineId");
            return (Criteria) this;
        }

        public Criteria andMedicineIdNotIn(List<Integer> values) {
            addCriterion("medicineId not in", values, "medicineId");
            return (Criteria) this;
        }

        public Criteria andMedicineIdBetween(Integer value1, Integer value2) {
            addCriterion("medicineId between", value1, value2, "medicineId");
            return (Criteria) this;
        }

        public Criteria andMedicineIdNotBetween(Integer value1, Integer value2) {
            addCriterion("medicineId not between", value1, value2, "medicineId");
            return (Criteria) this;
        }

        public Criteria andMedicineNumIsNull() {
            addCriterion("medicineNum is null");
            return (Criteria) this;
        }

        public Criteria andMedicineNumIsNotNull() {
            addCriterion("medicineNum is not null");
            return (Criteria) this;
        }

        public Criteria andMedicineNumEqualTo(Integer value) {
            addCriterion("medicineNum =", value, "medicineNum");
            return (Criteria) this;
        }

        public Criteria andMedicineNumNotEqualTo(Integer value) {
            addCriterion("medicineNum <>", value, "medicineNum");
            return (Criteria) this;
        }

        public Criteria andMedicineNumGreaterThan(Integer value) {
            addCriterion("medicineNum >", value, "medicineNum");
            return (Criteria) this;
        }

        public Criteria andMedicineNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("medicineNum >=", value, "medicineNum");
            return (Criteria) this;
        }

        public Criteria andMedicineNumLessThan(Integer value) {
            addCriterion("medicineNum <", value, "medicineNum");
            return (Criteria) this;
        }

        public Criteria andMedicineNumLessThanOrEqualTo(Integer value) {
            addCriterion("medicineNum <=", value, "medicineNum");
            return (Criteria) this;
        }

        public Criteria andMedicineNumIn(List<Integer> values) {
            addCriterion("medicineNum in", values, "medicineNum");
            return (Criteria) this;
        }

        public Criteria andMedicineNumNotIn(List<Integer> values) {
            addCriterion("medicineNum not in", values, "medicineNum");
            return (Criteria) this;
        }

        public Criteria andMedicineNumBetween(Integer value1, Integer value2) {
            addCriterion("medicineNum between", value1, value2, "medicineNum");
            return (Criteria) this;
        }

        public Criteria andMedicineNumNotBetween(Integer value1, Integer value2) {
            addCriterion("medicineNum not between", value1, value2, "medicineNum");
            return (Criteria) this;
        }

        public Criteria andHandledNumIsNull() {
            addCriterion("handledNum is null");
            return (Criteria) this;
        }

        public Criteria andHandledNumIsNotNull() {
            addCriterion("handledNum is not null");
            return (Criteria) this;
        }

        public Criteria andHandledNumEqualTo(Integer value) {
            addCriterion("handledNum =", value, "handledNum");
            return (Criteria) this;
        }

        public Criteria andHandledNumNotEqualTo(Integer value) {
            addCriterion("handledNum <>", value, "handledNum");
            return (Criteria) this;
        }

        public Criteria andHandledNumGreaterThan(Integer value) {
            addCriterion("handledNum >", value, "handledNum");
            return (Criteria) this;
        }

        public Criteria andHandledNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("handledNum >=", value, "handledNum");
            return (Criteria) this;
        }

        public Criteria andHandledNumLessThan(Integer value) {
            addCriterion("handledNum <", value, "handledNum");
            return (Criteria) this;
        }

        public Criteria andHandledNumLessThanOrEqualTo(Integer value) {
            addCriterion("handledNum <=", value, "handledNum");
            return (Criteria) this;
        }

        public Criteria andHandledNumIn(List<Integer> values) {
            addCriterion("handledNum in", values, "handledNum");
            return (Criteria) this;
        }

        public Criteria andHandledNumNotIn(List<Integer> values) {
            addCriterion("handledNum not in", values, "handledNum");
            return (Criteria) this;
        }

        public Criteria andHandledNumBetween(Integer value1, Integer value2) {
            addCriterion("handledNum between", value1, value2, "handledNum");
            return (Criteria) this;
        }

        public Criteria andHandledNumNotBetween(Integer value1, Integer value2) {
            addCriterion("handledNum not between", value1, value2, "handledNum");
            return (Criteria) this;
        }

        public Criteria andHandleNumIsNull() {
            addCriterion("handleNum is null");
            return (Criteria) this;
        }

        public Criteria andHandleNumIsNotNull() {
            addCriterion("handleNum is not null");
            return (Criteria) this;
        }

        public Criteria andHandleNumEqualTo(Integer value) {
            addCriterion("handleNum =", value, "handleNum");
            return (Criteria) this;
        }

        public Criteria andHandleNumNotEqualTo(Integer value) {
            addCriterion("handleNum <>", value, "handleNum");
            return (Criteria) this;
        }

        public Criteria andHandleNumGreaterThan(Integer value) {
            addCriterion("handleNum >", value, "handleNum");
            return (Criteria) this;
        }

        public Criteria andHandleNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("handleNum >=", value, "handleNum");
            return (Criteria) this;
        }

        public Criteria andHandleNumLessThan(Integer value) {
            addCriterion("handleNum <", value, "handleNum");
            return (Criteria) this;
        }

        public Criteria andHandleNumLessThanOrEqualTo(Integer value) {
            addCriterion("handleNum <=", value, "handleNum");
            return (Criteria) this;
        }

        public Criteria andHandleNumIn(List<Integer> values) {
            addCriterion("handleNum in", values, "handleNum");
            return (Criteria) this;
        }

        public Criteria andHandleNumNotIn(List<Integer> values) {
            addCriterion("handleNum not in", values, "handleNum");
            return (Criteria) this;
        }

        public Criteria andHandleNumBetween(Integer value1, Integer value2) {
            addCriterion("handleNum between", value1, value2, "handleNum");
            return (Criteria) this;
        }

        public Criteria andHandleNumNotBetween(Integer value1, Integer value2) {
            addCriterion("handleNum not between", value1, value2, "handleNum");
            return (Criteria) this;
        }

        public Criteria andHandleTimeIsNull() {
            addCriterion("handleTime is null");
            return (Criteria) this;
        }

        public Criteria andHandleTimeIsNotNull() {
            addCriterion("handleTime is not null");
            return (Criteria) this;
        }

        public Criteria andHandleTimeEqualTo(Date value) {
            addCriterion("handleTime =", value, "handleTime");
            return (Criteria) this;
        }

        public Criteria andHandleTimeNotEqualTo(Date value) {
            addCriterion("handleTime <>", value, "handleTime");
            return (Criteria) this;
        }

        public Criteria andHandleTimeGreaterThan(Date value) {
            addCriterion("handleTime >", value, "handleTime");
            return (Criteria) this;
        }

        public Criteria andHandleTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("handleTime >=", value, "handleTime");
            return (Criteria) this;
        }

        public Criteria andHandleTimeLessThan(Date value) {
            addCriterion("handleTime <", value, "handleTime");
            return (Criteria) this;
        }

        public Criteria andHandleTimeLessThanOrEqualTo(Date value) {
            addCriterion("handleTime <=", value, "handleTime");
            return (Criteria) this;
        }

        public Criteria andHandleTimeIn(List<Date> values) {
            addCriterion("handleTime in", values, "handleTime");
            return (Criteria) this;
        }

        public Criteria andHandleTimeNotIn(List<Date> values) {
            addCriterion("handleTime not in", values, "handleTime");
            return (Criteria) this;
        }

        public Criteria andHandleTimeBetween(Date value1, Date value2) {
            addCriterion("handleTime between", value1, value2, "handleTime");
            return (Criteria) this;
        }

        public Criteria andHandleTimeNotBetween(Date value1, Date value2) {
            addCriterion("handleTime not between", value1, value2, "handleTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}